﻿<Activity mc:Ignorable="sap sap2010 sads" x:Class="FleetManagementApp.Fleet_Management_Workflow.Workflow" sap2010:ExpressionActivityEditor.ExpressionActivityEditor="C#" sap2010:WorkflowViewState.IdRef="FleetManagementApp.Fleet_Management_Workflow.Workflow_1"
 xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
 xmlns:av="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 xmlns:mca="clr-namespace:Microsoft.CSharp.Activities;assembly=System.Activities"
 xmlns:msdad="clr-namespace:Microsoft.SharePoint.DesignTime.Activities.Design;assembly=Microsoft.SharePoint.DesignTime.Activities.Design"
 xmlns:p="http://schemas.microsoft.com/workflow/2012/07/xaml/activities"
 xmlns:p1="wf://workflow.windows.net/$Activities"
 xmlns:s="clr-namespace:System;assembly=mscorlib"
 xmlns:sads="http://schemas.microsoft.com/netfx/2010/xaml/activities/debugger"
 xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation"
 xmlns:sap2010="http://schemas.microsoft.com/netfx/2010/xaml/activities/presentation"
 xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib"
 xmlns:sco="clr-namespace:System.Collections.ObjectModel;assembly=mscorlib"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <TextExpression.NamespacesForImplementation>
    <sco:Collection x:TypeArguments="x:String">
      <x:String>System</x:String>
      <x:String>System.Collections.Generic</x:String>
      <x:String>System.Data</x:String>
      <x:String>System.Text</x:String>
      <x:String>Microsoft.Activities</x:String>
    </sco:Collection>
  </TextExpression.NamespacesForImplementation>
  <TextExpression.ReferencesForImplementation>
    <sco:Collection x:TypeArguments="AssemblyReference">
      <AssemblyReference>Microsoft.Activities</AssemblyReference>
      <AssemblyReference>Microsoft.SharePoint.DesignTime.Activities</AssemblyReference>
      <AssemblyReference>Microsoft.SharePoint.DesignTime.Activities.Design</AssemblyReference>
      <AssemblyReference>PresentationFramework</AssemblyReference>
      <AssemblyReference>System</AssemblyReference>
      <AssemblyReference>System.Activities</AssemblyReference>
      <AssemblyReference>System.Data</AssemblyReference>
      <AssemblyReference>System.Runtime.Serialization</AssemblyReference>
      <AssemblyReference>System.ServiceModel.Activities</AssemblyReference>
      <AssemblyReference>System.Xaml</AssemblyReference>
      <AssemblyReference>System.Xml</AssemblyReference>
      <AssemblyReference>System.Xml.Linq</AssemblyReference>
      <AssemblyReference>System.Core</AssemblyReference>
      <AssemblyReference>mscorlib</AssemblyReference>
      <AssemblyReference>FleetManagementApp</AssemblyReference>
    </sco:Collection>
  </TextExpression.ReferencesForImplementation>
  <StateMachine DisplayName="Root" sap2010:WorkflowViewState.IdRef="StateMachine_1">
    <StateMachine.InitialState>
      <State x:Name="__ReferenceID2" sap2010:Annotation.AnnotationText="Initalize the workflow. Retrieve vehicle data from Web Service." DisplayName="Init" sap2010:WorkflowViewState.IdRef="State_3">
        <State.Entry>
          <Sequence DisplayName="Workflow Startup" sap2010:WorkflowViewState.IdRef="Sequence_1">
            <WriteLine DisplayName="DEBUG" sap2010:WorkflowViewState.IdRef="WriteLine_1" Text="Entering State: Init" />
            <p:SetUserStatus Description="Initalizing Workflow" sap2010:WorkflowViewState.IdRef="SetUserStatus_1" />
            <p1:WriteToHistory sap2010:WorkflowViewState.IdRef="WriteToHistory_1" Message="Attempting to retrieve vehicle details..." />
            <Sequence sap2010:Annotation.AnnotationText="Retrieve values from the association form." DisplayName="Fetch Association Values" sap2010:WorkflowViewState.IdRef="Sequence_8">
              <WriteLine DisplayName="DEBUG" sap2010:WorkflowViewState.IdRef="WriteLine_10" Text="Retrieving workflow association form values" />
              <p1:WriteToHistory sap2010:WorkflowViewState.IdRef="WriteToHistory_2" Message="Retrieving workflow association form values..." />
              <p:GetConfigurationValue sap2010:Annotation.AnnotationText="Get maintenance worker selected" sap2010:WorkflowViewState.IdRef="GetConfigurationValue_1" Name="MaintenancePerson">
                <p:GetConfigurationValue.DefaultValue>
                  <InArgument x:TypeArguments="x:String">
                    <mca:CSharpValue x:TypeArguments="x:String">string.Empty</mca:CSharpValue>
                  </InArgument>
                </p:GetConfigurationValue.DefaultValue>
                <p:GetConfigurationValue.Result>
                  <OutArgument x:TypeArguments="x:String">
                    <mca:CSharpReference x:TypeArguments="x:String">MaintentancePersonLoginName</mca:CSharpReference>
                  </OutArgument>
                </p:GetConfigurationValue.Result>
              </p:GetConfigurationValue>
              <WriteLine DisplayName="DEBUG" sap2010:WorkflowViewState.IdRef="WriteLine_11">
                <InArgument x:TypeArguments="x:String">
                  <mca:CSharpValue x:TypeArguments="x:String">"MaintentancePersonLoginName=" +MaintentancePersonLoginName</mca:CSharpValue>
                </InArgument>
              </WriteLine>
              <p:GetConfigurationValue sap2010:Annotation.AnnotationText="Get Edmunds API key." sap2010:WorkflowViewState.IdRef="GetConfigurationValue_2" Name="EdmundsApiKey">
                <p:GetConfigurationValue.DefaultValue>
                  <InArgument x:TypeArguments="x:String">
                    <mca:CSharpValue x:TypeArguments="x:String">string.Empty</mca:CSharpValue>
                  </InArgument>
                </p:GetConfigurationValue.DefaultValue>
                <p:GetConfigurationValue.Result>
                  <OutArgument x:TypeArguments="x:String">
                    <mca:CSharpReference x:TypeArguments="x:String">EdmundsApiKey</mca:CSharpReference>
                  </OutArgument>
                </p:GetConfigurationValue.Result>
              </p:GetConfigurationValue>
              <WriteLine DisplayName="DEBUG" sap2010:WorkflowViewState.IdRef="WriteLine_12">
                <InArgument x:TypeArguments="x:String">
                  <mca:CSharpValue x:TypeArguments="x:String">"EdmundsApiKey=" + EdmundsApiKey</mca:CSharpValue>
                </InArgument>
              </WriteLine>
            </Sequence>
            <If DisplayName="If Edmunds API Key Present" sap2010:WorkflowViewState.IdRef="If_1">
              <If.Condition>
                <InArgument x:TypeArguments="x:Boolean">
                  <mca:CSharpValue x:TypeArguments="x:Boolean">EdmundsApiKey != ""</mca:CSharpValue>
                </InArgument>
              </If.Condition>
              <If.Then>
                <Sequence sap2010:Annotation.AnnotationText="Update the vehicle data by querying the Edmunds.com API. If successful the list item is updated." DisplayName="Update Vehicle Data" sap2010:WorkflowViewState.IdRef="Sequence_2">
                  <Sequence.Variables>
                    <Variable x:TypeArguments="x:String" Default="http://api.edmunds.com/v1/api/toolsrepository/vindecoder?vin={0}&amp;api_key={1}&amp;fmt=json" Name="EdmundsVehicleApiEndpoint" />
                    <Variable x:TypeArguments="x:String" Name="VehicleIdentificationNumber">
                      <Variable.Default>
                        <mca:CSharpValue x:TypeArguments="x:String">string.Empty</mca:CSharpValue>
                      </Variable.Default>
                    </Variable>
                    <Variable x:TypeArguments="p:DynamicValue" Name="ListItemPropertiesDV" />
                    <Variable x:TypeArguments="p:DynamicValue" Name="VehicleApiResponseDV" />
                  </Sequence.Variables>
                  <WriteLine DisplayName="DEBUG" sap2010:WorkflowViewState.IdRef="WriteLine_15" Text="Querying Edmunds Vehicle API for vehicle data" />
                  <p:SetUserStatus Description="Retreiving Vehicle Data" sap2010:WorkflowViewState.IdRef="SetUserStatus_2" />
                  <Sequence sap2010:Annotation.AnnotationText="Get the properties from the list item." DisplayName="Get VIN" sap2010:WorkflowViewState.IdRef="Sequence_11">
                    <p1:LookupSPListItem ItemGuid="{x:Null}" Properties="{x:Null}" sap2010:WorkflowViewState.IdRef="LookupSPListItem_1">
                      <p1:LookupSPListItem.ItemId>
                        <InArgument x:TypeArguments="x:Int32">
                          <p:ExpressionContainerValue x:TypeArguments="x:Int32">
                            <p1:GetCurrentItemId />
                          </p:ExpressionContainerValue>
                        </InArgument>
                      </p1:LookupSPListItem.ItemId>
                      <p1:LookupSPListItem.ListId>
                        <InArgument x:TypeArguments="s:Guid">
                          <p:ExpressionContainerValue x:TypeArguments="s:Guid">
                            <p1:GetCurrentListId />
                          </p:ExpressionContainerValue>
                        </InArgument>
                      </p1:LookupSPListItem.ListId>
                      <p1:LookupSPListItem.Result>
                        <OutArgument x:TypeArguments="p:DynamicValue">
                          <mca:CSharpReference x:TypeArguments="p:DynamicValue">ListItemPropertiesDV</mca:CSharpReference>
                        </OutArgument>
                      </p1:LookupSPListItem.Result>
                    </p1:LookupSPListItem>
                    <p:GetODataProperties DisplayName="GetDynamicValueProperties" sap2010:WorkflowViewState.IdRef="GetODataProperties_1">
                      <p:GetODataProperties.Source>
                        <InArgument x:TypeArguments="p:DynamicValue">
                          <mca:CSharpValue x:TypeArguments="p:DynamicValue">ListItemPropertiesDV</mca:CSharpValue>
                        </InArgument>
                      </p:GetODataProperties.Source>
                      <scg:Dictionary x:TypeArguments="x:String, OutArgument">
                        <OutArgument x:TypeArguments="x:String" x:Key="Title">
                          <mca:CSharpReference x:TypeArguments="x:String">VehicleIdentificationNumber</mca:CSharpReference>
                        </OutArgument>
                      </scg:Dictionary>
                    </p:GetODataProperties>
                    <WriteLine DisplayName="DEBUG" sap2010:WorkflowViewState.IdRef="WriteLine_17">
                      <InArgument x:TypeArguments="x:String">
                        <mca:CSharpValue x:TypeArguments="x:String">"VIN= " +VehicleIdentificationNumber</mca:CSharpValue>
                      </InArgument>
                    </WriteLine>
                  </Sequence>
                  <Sequence DisplayName="Call Edmunds Vehicle API" sap2010:WorkflowViewState.IdRef="Sequence_12">
                    <p:SetUserStatus Description="Querying Edmunds for Additional Vehicle Data" sap2010:WorkflowViewState.IdRef="SetUserStatus_5" />
                    <p1:WriteToHistory sap2010:WorkflowViewState.IdRef="WriteToHistory_4" Message="Querying Edmunds Vehicle API for additional data on vehicle..." />
                    <Assign sap2010:WorkflowViewState.IdRef="Assign_2">
                      <Assign.To>
                        <OutArgument x:TypeArguments="x:String">
                          <mca:CSharpReference x:TypeArguments="x:String">EdmundsVehicleApiEndpoint</mca:CSharpReference>
                        </OutArgument>
                      </Assign.To>
                      <Assign.Value>
                        <InArgument x:TypeArguments="x:String">
                          <mca:CSharpValue x:TypeArguments="x:String">string.Format(EdmundsVehicleApiEndpoint,VehicleIdentificationNumber,EdmundsApiKey)</mca:CSharpValue>
                        </InArgument>
                      </Assign.Value>
                    </Assign>
                    <WriteLine sap2010:WorkflowViewState.IdRef="WriteLine_16">
                      <InArgument x:TypeArguments="x:String">
                        <mca:CSharpValue x:TypeArguments="x:String">"Odata Query:" +EdmundsVehicleApiEndpoint</mca:CSharpValue>
                      </InArgument>
                    </WriteLine>
                    <p:HttpSend sap2010:WorkflowViewState.IdRef="HttpSend_1" Method="GET">
                      <p:HttpSend.ResponseContent>
                        <OutArgument x:TypeArguments="p:DynamicValue">
                          <mca:CSharpReference x:TypeArguments="p:DynamicValue">VehicleApiResponseDV</mca:CSharpReference>
                        </OutArgument>
                      </p:HttpSend.ResponseContent>
                      <p:HttpSend.Uri>
                        <InArgument x:TypeArguments="x:String">
                          <mca:CSharpValue x:TypeArguments="x:String">EdmundsVehicleApiEndpoint</mca:CSharpValue>
                        </InArgument>
                      </p:HttpSend.Uri>
                    </p:HttpSend>
                  </Sequence>
                  <Sequence DisplayName="Update List Item" sap2010:WorkflowViewState.IdRef="Sequence_13">
                    <Sequence.Variables>
                      <Variable x:TypeArguments="x:String" Name="VehicleYear">
                        <Variable.Default>
                          <mca:CSharpValue x:TypeArguments="x:String">string.Empty</mca:CSharpValue>
                        </Variable.Default>
                      </Variable>
                      <Variable x:TypeArguments="x:String" Name="VehicleMake">
                        <Variable.Default>
                          <mca:CSharpValue x:TypeArguments="x:String">string.Empty</mca:CSharpValue>
                        </Variable.Default>
                      </Variable>
                      <Variable x:TypeArguments="x:String" Name="VehicleModel">
                        <Variable.Default>
                          <mca:CSharpValue x:TypeArguments="x:String">string.Empty</mca:CSharpValue>
                        </Variable.Default>
                      </Variable>
                    </Sequence.Variables>
                    <p:SetUserStatus Description="Updating Vehicle Data (from Edmunds)" sap2010:WorkflowViewState.IdRef="SetUserStatus_6" />
                    <p1:WriteToHistory sap2010:WorkflowViewState.IdRef="WriteToHistory_5" Message="Updating list item with additional vehicle data..." />
                    <p:GetODataProperties sap2010:WorkflowViewState.IdRef="GetODataProperties_2">
                      <p:GetODataProperties.Source>
                        <InArgument x:TypeArguments="p:DynamicValue">
                          <mca:CSharpValue x:TypeArguments="p:DynamicValue">VehicleApiResponseDV</mca:CSharpValue>
                        </InArgument>
                      </p:GetODataProperties.Source>
                      <scg:Dictionary x:TypeArguments="x:String, OutArgument">
                        <OutArgument x:TypeArguments="x:String" x:Key="styleHolder/(0)/year">
                          <mca:CSharpReference x:TypeArguments="x:String">VehicleYear</mca:CSharpReference>
                        </OutArgument>
                        <OutArgument x:TypeArguments="x:String" x:Key="styleHolder/(0)/makeName">
                          <mca:CSharpReference x:TypeArguments="x:String">VehicleMake</mca:CSharpReference>
                        </OutArgument>
                        <OutArgument x:TypeArguments="x:String" x:Key="styleHolder/(0)/modelName">
                          <mca:CSharpReference x:TypeArguments="x:String">VehicleModel</mca:CSharpReference>
                        </OutArgument>
                      </scg:Dictionary>
                    </p:GetODataProperties>
                    <WriteLine DisplayName="DEBUG" sap2010:WorkflowViewState.IdRef="WriteLine_18">
                      <InArgument x:TypeArguments="x:String">
                        <mca:CSharpValue x:TypeArguments="x:String">"VehicleYear=" + VehicleYear + ", VehicleMake=" + VehicleMake + ", VehicleModel=" + VehicleModel</mca:CSharpValue>
                      </InArgument>
                    </WriteLine>
                    <WriteLine DisplayName="DEBUG" sap2010:WorkflowViewState.IdRef="WriteLine_19" Text="Updating item" />
                    <p1:UpdateListItem ItemGuid="{x:Null}" ListItemProperties="{x:Null}" sap2010:WorkflowViewState.IdRef="UpdateListItem_4">
                      <p1:UpdateListItem.ItemId>
                        <InArgument x:TypeArguments="x:Int32">
                          <p:ExpressionContainerValue x:TypeArguments="x:Int32">
                            <p1:GetCurrentItemId />
                          </p:ExpressionContainerValue>
                        </InArgument>
                      </p1:UpdateListItem.ItemId>
                      <p1:UpdateListItem.ListId>
                        <InArgument x:TypeArguments="s:Guid">
                          <p:ExpressionContainerValue x:TypeArguments="s:Guid">
                            <p1:GetCurrentListId />
                          </p:ExpressionContainerValue>
                        </InArgument>
                      </p1:UpdateListItem.ListId>
                      <p1:UpdateListItem.ListItemPropertiesDynamicValue>
                        <InArgument x:TypeArguments="p:DynamicValue">
                          <p:SetDynamicValueProperties>
                            <scg:Dictionary x:TypeArguments="x:String, InArgument">
                              <InArgument x:TypeArguments="x:String" x:Key="Year">
                                <mca:CSharpValue x:TypeArguments="x:String">VehicleYear</mca:CSharpValue>
                              </InArgument>
                              <InArgument x:TypeArguments="x:String" x:Key="Make">
                                <mca:CSharpValue x:TypeArguments="x:String">VehicleMake</mca:CSharpValue>
                              </InArgument>
                              <InArgument x:TypeArguments="x:String" x:Key="Model">
                                <mca:CSharpValue x:TypeArguments="x:String">VehicleModel</mca:CSharpValue>
                              </InArgument>
                            </scg:Dictionary>
                          </p:SetDynamicValueProperties>
                        </InArgument>
                      </p1:UpdateListItem.ListItemPropertiesDynamicValue>
                    </p1:UpdateListItem>
                    <WriteLine DisplayName="DEBUG" sap2010:WorkflowViewState.IdRef="WriteLine_20" Text="Item updated" />
                    <p1:WriteToHistory sap2010:WorkflowViewState.IdRef="WriteToHistory_6" Message="List item updated with additional vehicle data" />
                  </Sequence>
                </Sequence>
              </If.Then>
              <If.Else>
                <Sequence sap2010:WorkflowViewState.IdRef="Sequence_10">
                  <WriteLine DisplayName="DEBUG" sap2010:WorkflowViewState.IdRef="WriteLine_14" Text="Skipping Edmunds query and vehicle data update" />
                  <p1:WriteToHistory sap2010:WorkflowViewState.IdRef="WriteToHistory_3" Message="No Edmnuds API key present, skipping step to query Vehicle API and update vehicle data" />
                </Sequence>
              </If.Else>
            </If>
          </Sequence>
        </State.Entry>
        <State.Exit>
          <WriteLine DisplayName="DEBUG" sap2010:WorkflowViewState.IdRef="WriteLine_2" Text="Leaving State: Init" />
        </State.Exit>
        <State.Transitions>
          <Transition DisplayName="Add to Fleet" sap2010:WorkflowViewState.IdRef="Transition_4">
            <Transition.To>
              <State x:Name="__ReferenceID0" sap2010:Annotation.AnnotationText="Vehicle currently in service &amp; available for use." DisplayName="Vehicle In Service" sap2010:WorkflowViewState.IdRef="State_2">
                <State.Entry>
                  <Sequence sap2010:WorkflowViewState.IdRef="Sequence_6">
                    <WriteLine DisplayName="DEBUG" sap2010:WorkflowViewState.IdRef="WriteLine_3" Text="Entering State: Vehicle In Service" />
                    <p:SetUserStatus Description="Vehicle In Service" sap2010:WorkflowViewState.IdRef="SetUserStatus_3" />
                    <p1:WriteToHistory sap2010:WorkflowViewState.IdRef="WriteToHistory_7" Message="Placing vehicle in service..." />
                    <p1:UpdateListItem ItemGuid="{x:Null}" ListItemProperties="{x:Null}" sap2010:Annotation.AnnotationText="Take the vehicle out of service by updating the &quot;Service Status&quot; field &amp; clear field &quot;Maintenance Reason&quot;." sap2010:WorkflowViewState.IdRef="UpdateListItem_1">
                      <p1:UpdateListItem.ItemId>
                        <InArgument x:TypeArguments="x:Int32">
                          <p:ExpressionContainerValue x:TypeArguments="x:Int32">
                            <p1:GetCurrentItemId />
                          </p:ExpressionContainerValue>
                        </InArgument>
                      </p1:UpdateListItem.ItemId>
                      <p1:UpdateListItem.ListId>
                        <InArgument x:TypeArguments="s:Guid">
                          <p:ExpressionContainerValue x:TypeArguments="s:Guid">
                            <p1:GetCurrentListId />
                          </p:ExpressionContainerValue>
                        </InArgument>
                      </p1:UpdateListItem.ListId>
                      <p1:UpdateListItem.ListItemPropertiesDynamicValue>
                        <InArgument x:TypeArguments="p:DynamicValue">
                          <p:SetDynamicValueProperties>
                            <scg:Dictionary x:TypeArguments="x:String, InArgument">
                              <InArgument x:TypeArguments="x:String" x:Key="ServiceStatus">In Service</InArgument>
                              <InArgument x:TypeArguments="x:String" x:Key="CurrentMaintenanceDescription">
                                <Literal x:TypeArguments="x:String" Value="" />
                              </InArgument>
                            </scg:Dictionary>
                          </p:SetDynamicValueProperties>
                        </InArgument>
                      </p1:UpdateListItem.ListItemPropertiesDynamicValue>
                    </p1:UpdateListItem>
                  </Sequence>
                </State.Entry>
                <State.Exit>
                  <WriteLine DisplayName="DEBUG" sap2010:WorkflowViewState.IdRef="WriteLine_4" Text="Leaving State: Vehicle In Service" />
                </State.Exit>
                <State.Transitions>
                  <Transition DisplayName="Scheduled Service" sap2010:WorkflowViewState.IdRef="Transition_2">
                    <Transition.Trigger>
                      <Sequence sap2010:WorkflowViewState.IdRef="Sequence_3">
                        <Delay sap2010:Annotation.AnnotationText="Delay for 30s (simulates a standard maintenance window for a vehicle)." sap2010:WorkflowViewState.IdRef="Delay_1">
                          <InArgument x:TypeArguments="x:TimeSpan">
                            <mca:CSharpValue x:TypeArguments="x:TimeSpan">TimeSpan.FromSeconds(30)</mca:CSharpValue>
                          </InArgument>
                        </Delay>
                        <WriteLine DisplayName="DEBUG" sap2010:WorkflowViewState.IdRef="WriteLine_7" Text="Transition Triggered: Scheduled Service" />
                      </Sequence>
                    </Transition.Trigger>
                    <Transition.To>
                      <State x:Name="__ReferenceID1" sap2010:Annotation.AnnotationText="Vehicle out of service for maintenance &amp; not available for use." DisplayName="Vehicle Out of Service" sap2010:WorkflowViewState.IdRef="State_1">
                        <State.Entry>
                          <Sequence sap2010:WorkflowViewState.IdRef="Sequence_4">
                            <WriteLine DisplayName="DEBUG" sap2010:WorkflowViewState.IdRef="WriteLine_5" Text="Entering State: Vehicle Out of Service" />
                            <p:SetUserStatus Description="Vehicle Out of Service" sap2010:WorkflowViewState.IdRef="SetUserStatus_4" />
                            <p1:WriteToHistory Message="Vehicle out of service" sap2010:WorkflowViewState.IdRef="WriteToHistory_10" />
                            <p1:UpdateListItem ItemGuid="{x:Null}" ListItemProperties="{x:Null}" sap2010:Annotation.AnnotationText="Update the reason the vehicle is being taken out of service." sap2010:WorkflowViewState.IdRef="UpdateListItem_2">
                              <p1:UpdateListItem.ItemId>
                                <InArgument x:TypeArguments="x:Int32">
                                  <p:ExpressionContainerValue x:TypeArguments="x:Int32">
                                    <p1:GetCurrentItemId />
                                  </p:ExpressionContainerValue>
                                </InArgument>
                              </p1:UpdateListItem.ItemId>
                              <p1:UpdateListItem.ListId>
                                <InArgument x:TypeArguments="s:Guid">
                                  <p:ExpressionContainerValue x:TypeArguments="s:Guid">
                                    <p1:GetCurrentListId />
                                  </p:ExpressionContainerValue>
                                </InArgument>
                              </p1:UpdateListItem.ListId>
                              <p1:UpdateListItem.ListItemPropertiesDynamicValue>
                                <InArgument x:TypeArguments="p:DynamicValue">
                                  <p:SetDynamicValueProperties>
                                    <scg:Dictionary x:TypeArguments="x:String, InArgument">
                                      <InArgument x:TypeArguments="x:String" x:Key="CurrentMaintenanceDescription">
                                        <mca:CSharpValue x:TypeArguments="x:String">MaintenanceReason</mca:CSharpValue>
                                      </InArgument>
                                      <InArgument x:TypeArguments="x:String" x:Key="ServiceStatus">Out of Service</InArgument>
                                    </scg:Dictionary>
                                  </p:SetDynamicValueProperties>
                                </InArgument>
                              </p1:UpdateListItem.ListItemPropertiesDynamicValue>
                            </p1:UpdateListItem>
                            <p1:SingleTask DueDate="{x:Null}" Outcome="{x:Null}" TaskId="{x:Null}" TaskItemId="{x:Null}" sap2010:Annotation.AnnotationText="Assign maintenance task." AssignmentEmailSubject="Maintenance Task Assigned" CancelationEmailBody="&lt;html&gt;&lt;body style='font-size:11pt;font-family:Segoe UI Light,sans-serif;color:#444444;'&gt;&lt;div&gt;&lt;span style='font-size:13.5pt'&gt;One of your tasks was canceled and deleted. You do not need to take any further action on that task.&lt;/span&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;" CancelationEmailSubject="Maintenance Task Canceled" CompletedStatus="Completed" ContentTypeId="0x0108003365C4474CAE8C42BCE396314E88E51F" DefaultTaskOutcome="0" sap2010:WorkflowViewState.IdRef="SingleTask_1" OutcomeFieldName="TaskOutcome" OverdueEmailBody="&lt;html&gt;&lt;body style='font-size:11pt;font-family:Segoe UI Light,sans-serif;color:#444444;'&gt;&lt;div&gt;&lt;span style='font-size:13.5pt'&gt;You have an &lt;/span&gt;&lt;span style='font-size:13.5pt;color:#ff3b3b;'&gt;overdue&lt;/span&gt;&lt;span style='font-size:13.5pt'&gt; task.&lt;/span&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;" OverdueEmailSubject="Maintenance Task Overdue" OverdueReminderRepeat="1" OverdueRepeatTimes="1" SendReminderEmail="False" Title="Vehicle Maintenance" WaitForTaskCompletion="True">
                              <p1:SingleTask.AssignedTo>
                                <InArgument x:TypeArguments="x:String">
                                  <mca:CSharpValue x:TypeArguments="x:String">MaintentancePersonLoginName</mca:CSharpValue>
                                </InArgument>
                              </p1:SingleTask.AssignedTo>
                              <p1:SingleTask.AssignmentEmailBody>
                                <InArgument x:TypeArguments="x:String">
                                  <mca:CSharpValue x:TypeArguments="x:String">"&lt;html&gt;&lt;body style='font-size:11pt;font-family:Segoe UI Light,sans-serif;color:#444444;'&gt;&lt;div&gt;&lt;span style='font-size:13.5pt'&gt;You have a new task. The vehicle associated with this task has been taken out of service for maintenance. Reason for maintenance:" +MaintenanceReason +"&lt;/span&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;"</mca:CSharpValue>
                                </InArgument>
                              </p1:SingleTask.AssignmentEmailBody>
                              <p1:SingleTask.Body>
                                <InArgument x:TypeArguments="x:String">
                                  <mca:CSharpValue x:TypeArguments="x:String">"The vehicle associated with this task has been taken out of service for maintenance. Reason for maintenance:" +MaintenanceReason</mca:CSharpValue>
                                </InArgument>
                              </p1:SingleTask.Body>
                              <p1:SingleTask.RelatedContentLinkListId>
                                <InArgument x:TypeArguments="s:Guid">
                                  <p:ExpressionContainerValue x:TypeArguments="s:Guid">
                                    <p1:GetCurrentListId />
                                  </p:ExpressionContainerValue>
                                </InArgument>
                              </p1:SingleTask.RelatedContentLinkListId>
                              <p1:SingleTask.RelatedContentLinkListItemId>
                                <InArgument x:TypeArguments="s:Guid">
                                  <p:ExpressionContainerValue x:TypeArguments="s:Guid">
                                    <p1:GetCurrentItemGuid />
                                  </p:ExpressionContainerValue>
                                </InArgument>
                              </p1:SingleTask.RelatedContentLinkListItemId>
                              <p1:SingleTask.RelatedContentLinkListItemIntegerId>
                                <InArgument x:TypeArguments="x:Int32">
                                  <p:ExpressionContainerValue x:TypeArguments="x:Int32">
                                    <p1:GetCurrentItemId />
                                  </p:ExpressionContainerValue>
                                </InArgument>
                              </p1:SingleTask.RelatedContentLinkListItemIntegerId>
                            </p1:SingleTask>
                            <WriteLine DisplayName="DEBUG" sap2010:WorkflowViewState.IdRef="WriteLine_13" Text="Maintenance task complete, updating last maintenance date field" />
                          </Sequence>
                        </State.Entry>
                        <State.Exit>
                          <Sequence sap2010:WorkflowViewState.IdRef="Sequence_9">
                            <p1:UpdateListItem ItemGuid="{x:Null}" ListItemProperties="{x:Null}" sap2010:Annotation.AnnotationText="Update the Last Maintenance field." sap2010:WorkflowViewState.IdRef="UpdateListItem_3">
                              <p1:UpdateListItem.ItemId>
                                <InArgument x:TypeArguments="x:Int32">
                                  <p:ExpressionContainerValue x:TypeArguments="x:Int32">
                                    <p1:GetCurrentItemId />
                                  </p:ExpressionContainerValue>
                                </InArgument>
                              </p1:UpdateListItem.ItemId>
                              <p1:UpdateListItem.ListId>
                                <InArgument x:TypeArguments="s:Guid">
                                  <p:ExpressionContainerValue x:TypeArguments="s:Guid">
                                    <p1:GetCurrentListId />
                                  </p:ExpressionContainerValue>
                                </InArgument>
                              </p1:UpdateListItem.ListId>
                              <p1:UpdateListItem.ListItemPropertiesDynamicValue>
                                <InArgument x:TypeArguments="p:DynamicValue">
                                  <p:SetDynamicValueProperties>
                                    <scg:Dictionary x:TypeArguments="x:String, InArgument">
                                      <InArgument x:TypeArguments="s:DateTime" x:Key="LastMaintenance">
                                        <mca:CSharpValue x:TypeArguments="s:DateTime">DateTime.UtcNow</mca:CSharpValue>
                                      </InArgument>
                                    </scg:Dictionary>
                                  </p:SetDynamicValueProperties>
                                </InArgument>
                              </p1:UpdateListItem.ListItemPropertiesDynamicValue>
                            </p1:UpdateListItem>
                            <WriteLine DisplayName="DEBUG" sap2010:WorkflowViewState.IdRef="WriteLine_6" Text="Leaving State: Vehicle Out of Service" />
                          </Sequence>
                        </State.Exit>
                        <State.Transitions>
                          <Transition DisplayName="Re-Enter Service" sap2010:WorkflowViewState.IdRef="Transition_1">
                            <Transition.Trigger>
                              <Sequence sap2010:WorkflowViewState.IdRef="Sequence_5">
                                <WriteLine DisplayName="DEBUG" sap2010:WorkflowViewState.IdRef="WriteLine_8" Text="Transition Triggered: Re-Enter Service" />
                              </Sequence>
                            </Transition.Trigger>
                            <Transition.To>
                              <x:Reference>__ReferenceID0</x:Reference>
                            </Transition.To>
                          </Transition>
                        </State.Transitions>
                      </State>
                    </Transition.To>
                    <Transition.Action>
                      <Sequence sap2010:WorkflowViewState.IdRef="Sequence_14">
                        <Assign sap2010:WorkflowViewState.IdRef="Assign_1">
                          <Assign.To>
                            <OutArgument x:TypeArguments="x:String">
                              <mca:CSharpReference x:TypeArguments="x:String">MaintenanceReason</mca:CSharpReference>
                            </OutArgument>
                          </Assign.To>
                          <Assign.Value>
                            <InArgument x:TypeArguments="x:String">Scheduled maintenance</InArgument>
                          </Assign.Value>
                        </Assign>
                        <p1:WriteToHistory sap2010:WorkflowViewState.IdRef="WriteToHistory_8" Message="Vehicle being taken out of service for scheduled service" />
                      </Sequence>
                    </Transition.Action>
                  </Transition>
                  <Transition DisplayName="Service Request" sap2010:WorkflowViewState.IdRef="Transition_3">
                    <Transition.Trigger>
                      <Sequence sap2010:WorkflowViewState.IdRef="Sequence_7">
                        <p1:WaitForCustomEvent sap2010:Annotation.AnnotationText="Wait for ad-hoc service request event to be published." EventName="AdHocMaintenanceRequest" sap2010:WorkflowViewState.IdRef="WaitForCustomEvent_1">
                          <p1:WaitForCustomEvent.Result>
                            <OutArgument x:TypeArguments="x:String">
                              <mca:CSharpReference x:TypeArguments="x:String">MaintenanceReason</mca:CSharpReference>
                            </OutArgument>
                          </p1:WaitForCustomEvent.Result>
                        </p1:WaitForCustomEvent>
                        <WriteLine DisplayName="DEBUG" sap2010:WorkflowViewState.IdRef="WriteLine_9" Text="Transition Triggered: Service Request" />
                      </Sequence>
                    </Transition.Trigger>
                    <Transition.To>
                      <x:Reference>__ReferenceID1</x:Reference>
                    </Transition.To>
                    <Transition.Action>
                      <p1:WriteToHistory sap2010:WorkflowViewState.IdRef="WriteToHistory_9">
                        <p1:WriteToHistory.Message>
                          <InArgument x:TypeArguments="x:String">
                            <mca:CSharpValue x:TypeArguments="x:String">"Vehicle being taken out of service for unscheduled service:" +MaintenanceReason</mca:CSharpValue>
                          </InArgument>
                        </p1:WriteToHistory.Message>
                      </p1:WriteToHistory>
                    </Transition.Action>
                  </Transition>
                </State.Transitions>
              </State>
            </Transition.To>
          </Transition>
        </State.Transitions>
        <State.Variables>
          <Variable x:TypeArguments="x:String" Name="EdmundsApiKey">
            <Variable.Default>
              <mca:CSharpValue x:TypeArguments="x:String">string.Empty</mca:CSharpValue>
            </Variable.Default>
          </Variable>
        </State.Variables>
      </State>
    </StateMachine.InitialState>
    <x:Reference>__ReferenceID2</x:Reference>
    <x:Reference>__ReferenceID0</x:Reference>
    <x:Reference>__ReferenceID1</x:Reference>
    <StateMachine.Variables>
      <Variable x:TypeArguments="x:String" Name="MaintenanceReason">
        <Variable.Default>
          <mca:CSharpValue x:TypeArguments="x:String">string.Empty</mca:CSharpValue>
        </Variable.Default>
      </Variable>
      <Variable x:TypeArguments="x:String" Name="MaintentancePersonLoginName">
        <Variable.Default>
          <mca:CSharpValue x:TypeArguments="x:String">string.Empty</mca:CSharpValue>
        </Variable.Default>
      </Variable>
    </StateMachine.Variables>
    <sads:DebugSymbol.Symbol>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</sads:DebugSymbol.Symbol>
  </StateMachine>
  <sap2010:WorkflowViewState.ViewStateManager>
    <sap2010:ViewStateManager>
      <sap2010:ViewStateData Id="WriteLine_1" sap:VirtualizedContainerService.HintSize="464,62" />
      <sap2010:ViewStateData Id="SetUserStatus_1" sap:VirtualizedContainerService.HintSize="464,22" />
      <sap2010:ViewStateData Id="WriteToHistory_1" sap:VirtualizedContainerService.HintSize="464,68" />
      <sap2010:ViewStateData Id="WriteLine_10" sap:VirtualizedContainerService.HintSize="211,62" />
      <sap2010:ViewStateData Id="WriteToHistory_2" sap:VirtualizedContainerService.HintSize="211,68" />
      <sap2010:ViewStateData Id="GetConfigurationValue_1" sap:VirtualizedContainerService.HintSize="211,60">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="WriteLine_11" sap:VirtualizedContainerService.HintSize="211,62" />
      <sap2010:ViewStateData Id="GetConfigurationValue_2" sap:VirtualizedContainerService.HintSize="211,45">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="WriteLine_12" sap:VirtualizedContainerService.HintSize="211,62" />
      <sap2010:ViewStateData Id="Sequence_8" sap:VirtualizedContainerService.HintSize="464,89">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="WriteLine_15" sap:VirtualizedContainerService.HintSize="211,62" />
      <sap2010:ViewStateData Id="SetUserStatus_2" sap:VirtualizedContainerService.HintSize="211,22" />
      <sap2010:ViewStateData Id="LookupSPListItem_1" sap:VirtualizedContainerService.HintSize="247,89">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <scg:Dictionary x:TypeArguments="x:String, msdad:ViewStateNameValue" x:Key="SPLocalizedDisplayNames">
              <msdad:ViewStateNameValue x:Key="ListId" DisplayName="(current list)" Value="$CurrentListId" />
              <msdad:ViewStateNameValue x:Key="ItemId" DisplayName="(current item)" Value="$CurrentItemId" />
            </scg:Dictionary>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="GetODataProperties_1" sap:VirtualizedContainerService.HintSize="247,92">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:String x:Key="Properties.SelectedEntityType">Lists/Fleet Management</x:String>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="WriteLine_17" sap:VirtualizedContainerService.HintSize="247,62" />
      <sap2010:ViewStateData Id="Sequence_11" sap:VirtualizedContainerService.HintSize="211,89">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="SetUserStatus_5" sap:VirtualizedContainerService.HintSize="242,22" />
      <sap2010:ViewStateData Id="WriteToHistory_4" sap:VirtualizedContainerService.HintSize="242,68" />
      <sap2010:ViewStateData Id="Assign_2" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="WriteLine_16" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="HttpSend_1" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Sequence_12" sap:VirtualizedContainerService.HintSize="211,51">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="SetUserStatus_6" sap:VirtualizedContainerService.HintSize="247,22" />
      <sap2010:ViewStateData Id="WriteToHistory_5" sap:VirtualizedContainerService.HintSize="247,68" />
      <sap2010:ViewStateData Id="GetODataProperties_2" sap:VirtualizedContainerService.HintSize="247,92" />
      <sap2010:ViewStateData Id="WriteLine_18" sap:VirtualizedContainerService.HintSize="247,62" />
      <sap2010:ViewStateData Id="WriteLine_19" sap:VirtualizedContainerService.HintSize="247,62" />
      <sap2010:ViewStateData Id="UpdateListItem_4" sap:VirtualizedContainerService.HintSize="247,68">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <scg:Dictionary x:TypeArguments="x:String, msdad:ViewStateNameValue" x:Key="SPLocalizedDisplayNames">
              <msdad:ViewStateNameValue x:Key="ListId" DisplayName="(current list)" Value="$CurrentListId" />
              <msdad:ViewStateNameValue x:Key="ItemId" DisplayName="(current item)" Value="$CurrentItemId" />
            </scg:Dictionary>
            <x:String x:Key="ListItemPropertiesDynamicValue.SelectedEntityType"></x:String>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="WriteLine_20" sap:VirtualizedContainerService.HintSize="247,62" />
      <sap2010:ViewStateData Id="WriteToHistory_6" sap:VirtualizedContainerService.HintSize="247,68" />
      <sap2010:ViewStateData Id="Sequence_13" sap:VirtualizedContainerService.HintSize="211,51">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Sequence_2" sap:VirtualizedContainerService.HintSize="200,119">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="WriteLine_14" sap:VirtualizedContainerService.HintSize="211,62" />
      <sap2010:ViewStateData Id="WriteToHistory_3" sap:VirtualizedContainerService.HintSize="211,68" />
      <sap2010:ViewStateData Id="Sequence_10" sap:VirtualizedContainerService.HintSize="200,51">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="If_1" sap:VirtualizedContainerService.HintSize="464,269" />
      <sap2010:ViewStateData Id="Sequence_1" sap:VirtualizedContainerService.HintSize="200,51">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="WriteLine_2" sap:VirtualizedContainerService.HintSize="211,62" />
      <sap2010:ViewStateData Id="WriteLine_3" sap:VirtualizedContainerService.HintSize="211,62" />
      <sap2010:ViewStateData Id="SetUserStatus_3" sap:VirtualizedContainerService.HintSize="211,22" />
      <sap2010:ViewStateData Id="WriteToHistory_7" sap:VirtualizedContainerService.HintSize="211,68" />
      <sap2010:ViewStateData Id="UpdateListItem_1" sap:VirtualizedContainerService.HintSize="211,136">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <scg:Dictionary x:TypeArguments="x:String, msdad:ViewStateNameValue" x:Key="SPLocalizedDisplayNames">
              <msdad:ViewStateNameValue x:Key="ListId" DisplayName="(current list)" Value="$CurrentListId" />
              <msdad:ViewStateNameValue x:Key="ItemId" DisplayName="(current item)" Value="$CurrentItemId" />
            </scg:Dictionary>
            <x:String x:Key="ListItemPropertiesDynamicValue.SelectedEntityType"></x:String>
            <x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Sequence_6" sap:VirtualizedContainerService.HintSize="233,532">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="WriteLine_4" sap:VirtualizedContainerService.HintSize="211,62" />
      <sap2010:ViewStateData Id="Delay_1" sap:VirtualizedContainerService.HintSize="211,75">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="WriteLine_7" sap:VirtualizedContainerService.HintSize="211,62" />
      <sap2010:ViewStateData Id="Sequence_3" sap:VirtualizedContainerService.HintSize="233,301">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="WriteLine_5" sap:VirtualizedContainerService.HintSize="211,62" />
      <sap2010:ViewStateData Id="SetUserStatus_4" sap:VirtualizedContainerService.HintSize="211,22" />
      <sap2010:ViewStateData Id="WriteToHistory_10" sap:VirtualizedContainerService.HintSize="211,68" />
      <sap2010:ViewStateData Id="UpdateListItem_2" sap:VirtualizedContainerService.HintSize="211,106">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
            <scg:Dictionary x:TypeArguments="x:String, msdad:ViewStateNameValue" x:Key="SPLocalizedDisplayNames">
              <msdad:ViewStateNameValue x:Key="ItemId" DisplayName="(current item)" Value="$CurrentItemId" />
              <msdad:ViewStateNameValue x:Key="ListId" DisplayName="(current list)" Value="$CurrentListId" />
            </scg:Dictionary>
            <x:String x:Key="ListItemPropertiesDynamicValue.SelectedEntityType">Lists/Fleet Management</x:String>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="SingleTask_1" sap:VirtualizedContainerService.HintSize="211,112">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="WriteLine_13" sap:VirtualizedContainerService.HintSize="211,62" />
      <sap2010:ViewStateData Id="Sequence_4" sap:VirtualizedContainerService.HintSize="233,756">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="UpdateListItem_3" sap:VirtualizedContainerService.HintSize="211,106">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <scg:Dictionary x:TypeArguments="x:String, msdad:ViewStateNameValue" x:Key="SPLocalizedDisplayNames">
              <msdad:ViewStateNameValue x:Key="ListId" DisplayName="(current list)" Value="$CurrentListId" />
              <msdad:ViewStateNameValue x:Key="ItemId" DisplayName="(current item)" Value="$CurrentItemId" />
            </scg:Dictionary>
            <x:String x:Key="ListItemPropertiesDynamicValue.SelectedEntityType"></x:String>
            <x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="WriteLine_6" sap:VirtualizedContainerService.HintSize="211,62" />
      <sap2010:ViewStateData Id="Sequence_9" sap:VirtualizedContainerService.HintSize="233,332">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="WriteLine_8" sap:VirtualizedContainerService.HintSize="211,62" />
      <sap2010:ViewStateData Id="Sequence_5" sap:VirtualizedContainerService.HintSize="233,186">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Transition_1" sap:VirtualizedContainerService.HintSize="430,633">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <av:PointCollection x:Key="ConnectorLocation">383,629.9 441,629.9 441,622.02 469,622.02 469,399.1 386,399.1</av:PointCollection>
            <x:Int32 x:Key="SrcConnectionPointIndex">44</x:Int32>
            <x:Int32 x:Key="DestConnectionPointIndex">28</x:Int32>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="State_1" sap:VirtualizedContainerService.HintSize="326,1378">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <av:Point x:Key="ShapeLocation">177,561.5</av:Point>
            <av:Size x:Key="ShapeSize">206,114</av:Size>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
            <x:Double x:Key="StateContainerWidth">192</x:Double>
            <x:Double x:Key="StateContainerHeight">25</x:Double>
            <x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Assign_1" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="WriteToHistory_8" sap:VirtualizedContainerService.HintSize="242,68" />
      <sap2010:ViewStateData Id="Sequence_14" sap:VirtualizedContainerService.HintSize="264,294">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Transition_2" sap:VirtualizedContainerService.HintSize="430,932">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <av:PointCollection x:Key="ConnectorLocation">222.8,458.5 222.8,488.5 207.9,488.5 207.9,561.5</av:PointCollection>
            <x:Int32 x:Key="SrcConnectionPointIndex">11</x:Int32>
            <x:Int32 x:Key="DestConnectionPointIndex">10</x:Int32>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="WaitForCustomEvent_1" sap:VirtualizedContainerService.HintSize="211,68">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsAnnotationDocked">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="WriteLine_9" sap:VirtualizedContainerService.HintSize="211,62" />
      <sap2010:ViewStateData Id="Sequence_7" sap:VirtualizedContainerService.HintSize="233,294">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="WriteToHistory_9" sap:VirtualizedContainerService.HintSize="200,68" />
      <sap2010:ViewStateData Id="Transition_3" sap:VirtualizedContainerService.HintSize="430,741">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <av:PointCollection x:Key="ConnectorLocation">357.2,458.5 357.2,488.5 341.8,488.5 341.8,561.5</av:PointCollection>
            <x:Int32 x:Key="SrcConnectionPointIndex">67</x:Int32>
            <x:Int32 x:Key="DestConnectionPointIndex">62</x:Int32>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="State_2" sap:VirtualizedContainerService.HintSize="192,99">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <av:Point x:Key="ShapeLocation">194,359.5</av:Point>
            <av:Size x:Key="ShapeSize">192,99</av:Size>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
            <x:Double x:Key="StateContainerWidth">177.5</x:Double>
            <x:Double x:Key="StateContainerHeight">25</x:Double>
            <x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Transition_4" sap:VirtualizedContainerService.HintSize="430,514">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <av:PointCollection x:Key="ConnectorLocation">267.2,299.5 267.2,329.5 270.8,329.5 270.8,359.5</av:PointCollection>
            <x:Int32 x:Key="SrcConnectionPointIndex">23</x:Int32>
            <x:Int32 x:Key="DestConnectionPointIndex">30</x:Int32>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="State_3" sap:VirtualizedContainerService.HintSize="114,144">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <av:Point x:Key="ShapeLocation">233,155.5</av:Point>
            <av:Size x:Key="ShapeSize">114,144</av:Size>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
            <x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="StateMachine_1" sap:VirtualizedContainerService.HintSize="614,764">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <av:Point x:Key="ShapeLocation">270,2.5</av:Point>
            <x:Double x:Key="StateContainerWidth">600</x:Double>
            <x:Double x:Key="StateContainerHeight">728.5</x:Double>
            <av:PointCollection x:Key="ConnectorLocation">297,77.5 297,107.5 295.7,107.5 295.7,155.5</av:PointCollection>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="FleetManagementApp.Fleet_Management_Workflow.Workflow_1" sap:VirtualizedContainerService.HintSize="654,844" />
    </sap2010:ViewStateManager>
  </sap2010:WorkflowViewState.ViewStateManager>
</Activity>